<template>
    <div>
        姓名：<input type="text">
        密码：<input type="text">
        数量：<input type="number" v-model="count">
        <button @click="count+=1">+</button>
    </div>
</template>

<script>
export default {
    data(){
        return{
            count:0
        }
    },
    activated (){
        console.log("userName激活")
    },
    deactivated (){
        console.log("userName去激活")
    }
}
</script>

<style>

</style>